<template>
  <div>
    <search-form
      @search = "search"
      ref="searchForm"
    >
    </search-form>
  </div>
</template>
<script>
  import SearchForm from './searchBase/Form'
  export default {
    name: 'SearchAgent',
    components: {
      SearchForm
    },
    props: {
      isAssDept: Boolean,
      roles: Array
    },
    methods: {
      resetFrom () {
        this.$refs.searchForm.rest()
      },
      search (form) {
        this.$emit('search', form)
      }
    }
  }
</script>
